<template>
  <div>
    <div v-for="(item, index) in arr" :key="index" class="item">
      <div>{{ item }}</div>
      <button>删除</button>
    </div>
  </div>
</template>

<script>
export default {
  props: ["arr"],
};
</script>

<style lang="scss" scoped>
.item {
  display: flex;
  justify-content: space-around;
  border: 5px solid red;
  height: 150px;
  align-items: center;
}
</style>